package com.yjx.config;

import com.yjx.filter.MyGlobalFilter;
import com.yjx.filter.TokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {
    @Bean
    public MyGlobalFilter myGlobalFilter() {
       return new MyGlobalFilter();
    }
    @Bean
    public TokenFilter tokenFilter(){
        return new TokenFilter();
    }
}
